<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤2：注册华为云Stack">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="hcs_gud_0011.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="hcs_gud_0014">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤2：注册华为云Stack</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="hcs_gud_0014"></a><a name="hcs_gud_0014"></a>
  <h1 class="topictitle1">步骤2：注册华为云Stack</h1>
  <div>
   <p>执行华为云Stack备份恢复前，需要将华为云Stack注册至<span>本产品</span>。</p>
   <div class="section">
    <h4 class="sectiontitle">前提条件</h4>
    <ul>
     <li>已为代理主机配置反向代理或免代理。</li>
     <li>已获取ManageOne运营面的运营管理员用户<strong>bss_admin</strong>及其对应的密码，该用户用于将华为云Stack接入<span>本产品</span>。<p>您也可以新创建类型为“系统”的华为云Stack运营管理员用户。华为云Stack 8.0.3及之前的版本，创建运营管理员的详细操作请参见《用户指南》，华为云Stack 8.1.0版本及之后的版本，创建运营管理员的详细操作请参见《资源发放指南》。</p></li>
     <li>已创建角色为“管理员”，登录方式为“RESTful”的存储设备用户，该用户用于将华为云Stack中的存储资源接入<span>本产品</span>。创建用户的详细操作请参见存储设备对应版本的《管理员指南》。如果存储资源为OceanStor V5，还需要设置用户级别为“管理员”。</li>
     <li>使用iSCSI备份，请确保华为云Stack对接的存储设备已配置备份软件的备份网络平面可访问的iSCSI端口。如未配置，请参考存储侧对应版本的产品配置。</li>
    </ul>
   </div>
   <div class="section">
    <h4 class="sectiontitle">背景信息</h4>
    <p>注册华为云Stack后，可以在管理界面浏览华为云Stack的项目/资源集、云服务器的信息并对其进行保护，也可将其作为恢复目标。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li id="hcs_gud_0014__li6843163813710"><span>选择<span class="uicontrol" id="hcs_gud_0014__zh-cn_topic_0000001839142377_uicontrol23517341412">“<span id="hcs_gud_0014__zh-cn_topic_0000001839142377_text635183444114">保护</span> &gt; 云平台 &gt; 华为云Stack”</span>。</span></li>
     <li><span>单击<span class="uicontrol">“<span>注册</span>”</span>，注册华为云Stack信息。</span><p></p>
      <div class="p">
       华为云Stack注册信息如<a href="#hcs_gud_0014__table613227155112">表1</a>所示。 
       <div class="tablenoborder">
        <a name="hcs_gud_0014__table613227155112"></a><a name="table613227155112"></a>
        <table cellpadding="4" cellspacing="0" summary="" id="hcs_gud_0014__table613227155112" frame="border" border="1" rules="all">
         <caption>
          <b>表1 </b>华为云Stack注册信息
         </caption>
         <colgroup>
          <col style="width:25.629999999999995%">
          <col style="width:74.37%">
         </colgroup>
         <thead align="left">
          <tr>
           <th align="left" class="cellrowborder" valign="top" width="25.629999999999995%" id="mcps1.3.4.2.2.2.1.2.2.3.1.1"><p>参数</p></th>
           <th align="left" class="cellrowborder" valign="top" width="74.37%" id="mcps1.3.4.2.2.2.1.2.2.3.1.2"><p>说明</p></th>
          </tr>
         </thead>
         <tbody>
          <tr>
           <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p><span>名称</span></p></td>
           <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.2 "><p>用户自定义华为云Stack名称。</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p><span>IP地址</span></p></td>
           <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.2 "><p>API Gateway的浮动IP地址。获取方式如下：</p> <p>在华为云Stack部署工具导出的参数汇总文件《<em id="hcs_gud_0014__zh-cn_topic_0000001356308068_i1939244723013">xxx</em>_export_all_CN》的“工具生成的IP参数”页签，搜索“AGW-LB-Float-IP”，获取对应的参数值。</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p><span>域名</span></p></td>
           <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.2 "><p>华为云Stack的访问域名。获取方式如下：</p> <p>在华为云Stack部署工具导出的参数汇总文件《<em id="hcs_gud_0014__zh-cn_topic_0000001356308068_i2789145183014">xxx</em>_export_all_CN》的“基本参数”页签，搜索“external_global_domain_name”，获取对应的参数值。</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p><span>用户名</span></p></td>
           <td class="cellrowborder" rowspan="2" valign="top" width="74.37%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.2 "><p>访问ManageOne运营面的运营管理员的用户名和密码。</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p><span>密码</span></p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p><span>代理主机</span></p></td>
           <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.2 "><p>选择可用于备份华为云Stack的代理主机。</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p><span>校验证书</span></p></td>
           <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.2 "><p>默认开启，注册华为云Stack时会对其证书进行校验，确保<span>本产品</span>与外部设备交互的安全性。关闭后，系统与云平台通信可能存在安全风险，请谨慎操作。</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.1 "><p>Cinder证书</p></td>
           <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.2.2.1.2.2.3.1.2 "><p>请导入<a href="hcs_gud_0012.html">步骤1：获取证书</a>章节中获取的Cinder证书，导入后执行备份任务时会校验该证书的有效性。</p></td>
          </tr>
         </tbody>
        </table>
       </div>
      </div> <p></p></li>
     <li><span>在“<span>存储资源</span>”区域，单击“<span>添加</span>”。存储资源参数说明如<a href="#hcs_gud_0014__table5692101024117">表2</a>所示。</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <ul>
         <li>如果华为云Stack的生产存储为华为分布式块存储，且使用外置代理，无需添加存储资源。其他场景需要添加存储资源，否则会导致备份任务失败。</li>
         <li>当华为云Stack生产存储有多套存储资源时，需要将待保护对象所在的存储资源都添加到<span>本产品</span>中。</li>
        </ul>
       </div>
      </div>
      <div class="tablenoborder">
       <a name="hcs_gud_0014__table5692101024117"></a><a name="table5692101024117"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="hcs_gud_0014__table5692101024117" frame="border" border="1" rules="all">
        <caption>
         <b>表2 </b>存储资源信息
        </caption>
        <colgroup>
         <col style="width:25.629999999999995%">
         <col style="width:74.37%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" valign="top" width="25.629999999999995%" id="mcps1.3.4.2.3.2.2.2.3.1.1"><p>参数</p></th>
          <th align="left" class="cellrowborder" valign="top" width="74.37%" id="mcps1.3.4.2.3.2.2.2.3.1.2"><p>说明</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>类型</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 "><p>存储资源的类型，包括：<span>华为SAN存储</span>和<span>华为分布式块存储</span>。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>管理IP地址</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 ">
           <ul>
            <li id="hcs_gud_0014__hcs_gud_0010_li1797751513310">华为SAN存储的管理IP地址获取方式：在华为云Stack部署工具导出的参数汇总文件《<em id="hcs_gud_0014__hcs_gud_0010_i988514423218">xxx</em>_export_all_CN》的“1.2 基本参数”页签，搜索“业务存储REST URL”，获取对应参数值中的IP地址。</li>
            <li id="hcs_gud_0014__hcs_gud_0010_li1951120142324">华为分布式块存储的管理IP地址获取方式：在华为云Stack部署工具导出的参数汇总文件《<em id="hcs_gud_0014__hcs_gud_0010_i16556164615321">xxx</em>_export_all_CN》的“2.3 Portal”页签，搜索“华为分布式块存储 Business”，获取对应参数值中的IP地址。
             <div class="note" id="hcs_gud_0014__hcs_gud_0010_note871485915219">
              <span class="notetitle"> 说明： </span>
              <div class="notebody">
               <p id="hcs_gud_0014__hcs_gud_0010_p10714859182111">如果待备份虚拟机的存储信息不在此汇总文件中，则请联系华为云Stack的环境管理员获取，并添加至华为云Stack的注册信息中。</p>
              </div>
             </div></li>
           </ul></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>端口</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 "><p>存储资源的访问端口，默认是8088。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>用户名</span></p></td>
          <td class="cellrowborder" rowspan="2" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 "><p>登录存储资源DeviceManager界面的管理员或超级管理员的用户名和密码。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>密码</span></p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>校验证书</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 "><p>默认开启，注册华为云Stack时会对存储资源的证书进行校验，确保<span>本产品</span>与外部设备交互的安全性。关闭后，系统与存储设备通信可能存在安全风险，请谨慎操作。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>证书</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 "><p>请导入<a href="hcs_gud_0012.html">步骤1：获取证书</a>章节中获取的存储资源的CA证书。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 "><p><span>吊销列表</span></p></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 "><p>吊销列表由证书颁发机构发布，导入证书吊销列表后，系统将校验客户端证书是否被吊销，如果证书已被吊销，则注册存储设备失败。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.629999999999995%" headers="mcps1.3.4.2.3.2.2.2.3.1.1 ">
           <div class="p" id="hcs_gud_0014__p754765016357">
            VBS节点登录信息
            <div class="note" id="hcs_gud_0014__note86651341182613">
             <span class="notetitle"> 说明： </span>
             <div class="notebody">
              <p id="hcs_gud_0014__p75712513014">仅1.5.0SPC19及后续版本“<span id="hcs_gud_0014__text313915265117">类型</span>”选择“<span id="hcs_gud_0014__text1813992145110">华为分布式块存储</span>”时存在此参数。</p>
             </div>
            </div>
           </div></td>
          <td class="cellrowborder" valign="top" width="74.37%" headers="mcps1.3.4.2.3.2.2.2.3.1.2 ">
           <div class="p" id="hcs_gud_0014__p1490113457416">
            当需要使用内置代理对华为分布式块存储（8.1.3及后续版本）的卷进行增量备份时，请打开开关，并执行以下操作。
            <ol type="a" id="hcs_gud_0014__ol767955013417">
             <li id="hcs_gud_0014__li867914501416"><a name="hcs_gud_0014__li867914501416"></a><a name="li867914501416"></a>在当前界面配置VBS节点的用户名、IP、端口和密码。
              <ul id="hcs_gud_0014__ul493419524111">
               <li id="hcs_gud_0014__li393417521315">“节点用户名”：请输入具有VBS节点登录权限的用户名，例如<strong id="hcs_gud_0014__b1389958142010">fsp</strong>。</li>
               <li id="hcs_gud_0014__li1692519161629">“节点IP”：请输入VBS节点的IP。</li>
               <li id="hcs_gud_0014__li743816319213">“节点端口”：SSH服务端口，默认为<strong id="hcs_gud_0014__b7811601932">22</strong>。</li>
               <li id="hcs_gud_0014__li1047211151634">“节点密码”：请输入用户密码。</li>
              </ul></li>
             <li id="hcs_gud_0014__li02899511396">检查配置的节点用户是否有权限执行VBS命令。
              <ol id="hcs_gud_0014__ol482833291016">
               <li id="hcs_gud_0014__li138281732111017">使用PuTTY，以配置的节点用户登录配置的VBS节点。</li>
               <li id="hcs_gud_0014__li766394061018">执行以下命令，检查该用户是否有权限执行VBS命令。<p id="hcs_gud_0014__p248982317103"><a name="hcs_gud_0014__li766394061018"></a><a name="li766394061018"></a><strong id="hcs_gud_0014__b681282410108">sudo</strong> <strong id="hcs_gud_0014__b19812142451019">/bin/vbs_cli</strong></p> <p id="hcs_gud_0014__p041055618107"><strong id="hcs_gud_0014__b4541593103">sudo</strong> <strong id="hcs_gud_0014__b14494141661112">/opt/dsware/vbs/script/vbs/vbs_cmd.sh</strong></p> <p id="hcs_gud_0014__p133531079119"><strong id="hcs_gud_0014__b349491681114">sudo /bin/sh</strong></p> <p id="hcs_gud_0014__p916162331116">如果能成功执行以上命令并无需输入密码，表示该用户有执行VBS命令权限，则结束操作。否则，请继续执行<a href="#hcs_gud_0014__li849205913223">3</a>。</p></li>
              </ol></li>
             <li id="hcs_gud_0014__li849205913223"><a name="hcs_gud_0014__li849205913223"></a><a name="li849205913223"></a>请执行以下操作，为用户配置VBS命令执行权限。
              <ol id="hcs_gud_0014__ol18650652882">
               <li id="hcs_gud_0014__li106502529815">执行<strong id="hcs_gud_0014__b48041143571">su - root</strong>命令，输入<strong id="hcs_gud_0014__b14119171064316">root</strong>用户密码，切换到<strong id="hcs_gud_0014__b151191010194318">root</strong>用户。</li>
               <li id="hcs_gud_0014__li365035219815">执行<strong id="hcs_gud_0014__b17479143285719">vi /etc/sudoers</strong>命令，打开配置文件，并将以下内容增加至配置文件。<pre class="screen" id="hcs_gud_0014__screen18183153755818"><em id="hcs_gud_0014__i148616234299">fsp</em> ALL=(root) NOPASSWD:/bin/vbs_cli
<em id="hcs_gud_0014__i1272822414290">fsp</em> ALL=(root) NOPASSWD:/opt/dsware/vbs/script/vbs/vbs_cmd.sh
<em id="hcs_gud_0014__i13405202652914">fsp</em> ALL=(root) NOPASSWD:/bin/sh</pre>
                <div class="note" id="hcs_gud_0014__note126817301294">
                 <span class="notetitle"> 说明： </span>
                 <div class="notebody">
                  <p id="hcs_gud_0014__p14270103012910">增加至配置文件内容中的<em id="hcs_gud_0014__i15652152643019">fsp</em>为<a href="#hcs_gud_0014__li867914501416">1</a>中配置的“节点用户名”，请根据实际替换。</p>
                 </div>
                </div></li>
              </ol></li>
            </ol>
           </div></td>
         </tr>
        </tbody>
       </table>
      </div> <p></p></li>
     <li><span>单击<span class="uicontrol">“<span>确定</span>”</span>。</span><p></p><p>注册成功后，已注册的华为云Stack信息将在页面左侧显示。</p> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="hcs_gud_0011.html">备份云服务器/云硬盘</a>
    </div>
   </div>
  </div>
 </body>
</html>